package server

import (
	"fmt"
	"github.com/silenceper/wechat/v2/officialaccount/message"
	"micro-grpc-server/services/wechat/internal/dao"
	wechat "micro-grpc-server/services/wechat/proto"
)

type DefaultRobotHandler struct {
	dao *dao.WechatDao
}

func NewDefaultRobotHandler(dao *dao.WechatDao) *DefaultRobotHandler {
	return &DefaultRobotHandler{
		dao: dao,
	}
}

func (h *DefaultRobotHandler) Text(body *wechat.RobotBody) (*message.Reply, error) {
	fmt.Println(*body)
	return &message.Reply{
		MsgType: message.MsgTypeText,
		MsgData: message.NewText(body.Content),
	}, nil
}

func (h *DefaultRobotHandler) Image(body *wechat.RobotBody) (*message.Reply, error) {
	return nil, nil
}

func (h *DefaultRobotHandler) Voice(body *wechat.RobotBody) (*message.Reply, error) {
	return nil, nil
}

func (h *DefaultRobotHandler) Video(body *wechat.RobotBody) (*message.Reply, error) {
	return nil, nil
}

func (h *DefaultRobotHandler) ShortVideo(body *wechat.RobotBody) (*message.Reply, error) {
	return nil, nil
}

func (h *DefaultRobotHandler) Location(body *wechat.RobotBody) (*message.Reply, error) {
	return nil, nil
}

func (h *DefaultRobotHandler) Link(body *wechat.RobotBody) (*message.Reply, error) {
	return nil, nil
}

func (h *DefaultRobotHandler) UnSubscribe(body *wechat.RobotBody) (*message.Reply, error) {
	return nil, nil
}

func (h *DefaultRobotHandler) Subscribe(body *wechat.RobotBody) (*message.Reply, error) {
	return nil, nil
}

func (h *DefaultRobotHandler) Scan(body *wechat.RobotBody) (*message.Reply, error) {
	return nil, nil
}

func (h *DefaultRobotHandler) LocationEvent(body *wechat.RobotBody) (*message.Reply, error) {
	return nil, nil
}

func (h *DefaultRobotHandler) Click(body *wechat.RobotBody) (*message.Reply, error) {
	return nil, nil
}

func (h *DefaultRobotHandler) View(body *wechat.RobotBody) (*message.Reply, error) {
	return nil, nil
}
